﻿ 
namespace Admin.NET.Application;

    /// <summary>
    /// 从机通讯输出参数
    /// </summary>
    public class DeviceRelSlaveDto
    {
        /// <summary>
        /// 从机模板Id
        /// </summary>
        public string DeviceSlaveTemplateIdSlaveName { get; set; }
        
        /// <summary>
        /// 设备id
        /// </summary>
        public string DeviceInfoIdDeviceName { get; set; }
        
        /// <summary>
        /// 主键Id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 从机模板Id
        /// </summary>
        public long DeviceSlaveTemplateId { get; set; }
        
        /// <summary>
        /// 设备id
        /// </summary>
        public long DeviceInfoId { get; set; }
        
        /// <summary>
        /// 串口序号
        /// </summary>
        public int ComIdx { get; set; }
        
        /// <summary>
        /// 从机地址
        /// </summary>
        public int SlaveAddr { get; set; }
        
        /// <summary>
        /// 从机IP
        /// </summary>
        public string SlaveIp { get; set; }
        
        /// <summary>
        /// 从机端口
        /// </summary>
        public int SlavePort { get; set; }
        
        /// <summary>
        /// 创建者部门Id
        /// </summary>
        public long? CreateOrgId { get; set; }
        
        /// <summary>
        /// 创建者部门名称
        /// </summary>
        public string? CreateOrgName { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public bool IsDelete { get; set; }
        
    }
